package com.hiultra.archive.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hiultra.common.annotation.Excel;
import com.hiultra.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 借阅任务对象 archive_borrow_task
 *
 * @author ls
 * @date 2024-07-19
 */
public class ArchiveBorrowTask extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**
     * 任务id
     */
    private String taskId;
    /**
     * 档案室编号
     */
    // @Excel(name = "档案室编号")
    private String roomNo;

    /**
     * 借阅人供电单位编号
     */
    @Excel(name = "借阅人供电单位编号",needMerge = true)
    private String borrowOrgNo;

    /**
     * 借阅任务编号
     */
    @Excel(name = "工单编号")
    private String borrowNo;
    /**
     * 借阅状态1已借阅 2已归还
     */
    @Excel(name = "借阅状态", dictType = "order_give_back_status")
    private String giveBackStatus;

    /**
     * 借阅人类型 1内部人员 2外部人员
     */
    @Excel(name = "借阅人类型", dictType = "borrow_person_type")
    private String borrowUserType;

    /**
     * 借阅人姓名
     */
    @Excel(name = "借阅人姓名")
    private String borrowUserName;

    /**
     * 借阅人联系方式
     */
    @Excel(name = "借阅人联系方式")
    private String borrowPhone;

    /**
     * 借阅方式1复印 2带出
     */
    @Excel(name = "利用方式", dictType = "borrow_method")
    private String utilizationMethod;

    /**
     * 借阅类型  1电子档案 2纸质档案
     */
    @Excel(name = "借阅类型", dictType = "borrow_type")
    private String borrowType;

    /**
     * 借阅天数
     */
    @Excel(name = "借阅天数")
    private String borrowDay;

    /**
     * 借出日期 yyyyMMddHHmmss
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "借出日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date borrowTime;

    /**
     * 归还日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "归还日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date giveBackTime;
    /**
     * 借阅实际时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "借阅实际时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date borrowOperTime;

    /**
     * 归还实际时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "归还实际时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date returnOperTime;

    /**
     * 归还操作员
     */
     @Excel(name = "归还操作员")
    private String giveBackBy;

    /**
     * 借阅原因
     */
    @Excel(name = "借阅原因")
    private String borrowReason;

    /**
     * 创建人
     */
    //@Excel(name = "创建人")
    private String creator;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss ")
    private Date modifyTime;

    /**
     * 更新人
     */
    private String modifier;

    /**
     * 借阅信息数据信息
     */
    @Excel(name = "借阅信息数据信息")
    private List<ArchiveBorrow> borrowInfo;

    /**
     * 上报类型
     */
    private String reportType;

    /**
     * 操作类型01.借阅 02.归还
     */
    private String operType;



    public String getReportType() {
        return reportType;
    }

    public void setReportType(String reportType) {
        this.reportType = reportType;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setRoomNo(String roomNo) {
        this.roomNo = roomNo;
    }

    public String getRoomNo() {
        return roomNo;
    }

    public void setBorrowOrgNo(String borrowOrgNo) {
        this.borrowOrgNo = borrowOrgNo;
    }

    public String getBorrowOrgNo() {
        return borrowOrgNo;
    }

    public void setBorrowNo(String borrowNo) {
        this.borrowNo = borrowNo;
    }

    public String getBorrowNo() {
        return borrowNo;
    }

    public void setBorrowUserType(String borrowUserType) {
        this.borrowUserType = borrowUserType;
    }

    public String getBorrowUserType() {
        return borrowUserType;
    }

    public void setBorrowUserName(String borrowUserName) {
        this.borrowUserName = borrowUserName;
    }

    public String getBorrowUserName() {
        return borrowUserName;
    }

    public void setBorrowPhone(String borrowPhone) {
        this.borrowPhone = borrowPhone;
    }

    public String getBorrowPhone() {
        return borrowPhone;
    }

    public void setUtilizationMethod(String utilizationMethod) {
        this.utilizationMethod = utilizationMethod;
    }

    public String getUtilizationMethod() {
        return utilizationMethod;
    }

    public void setBorrowType(String borrowType) {
        this.borrowType = borrowType;
    }

    public String getBorrowType() {
        return borrowType;
    }

    public void setBorrowDay(String borrowDay) {
        this.borrowDay = borrowDay;
    }

    public String getBorrowDay() {
        return borrowDay;
    }

    public void setBorrowTime(Date borrowTime) {
        this.borrowTime = borrowTime;
    }

    public Date getBorrowTime() {
        return borrowTime;
    }

    public void setGiveBackTime(Date giveBackTime) {
        this.giveBackTime = giveBackTime;
    }

    public Date getGiveBackTime() {
        return giveBackTime;
    }

    public void setGiveBackStatus(String giveBackStatus) {
        this.giveBackStatus = giveBackStatus;
    }

    public String getGiveBackStatus() {
        return giveBackStatus;
    }

    public void setGiveBackBy(String giveBackBy) {
        this.giveBackBy = giveBackBy;
    }

    public String getGiveBackBy() {
        return giveBackBy;
    }

    public void setBorrowReason(String borrowReason) {
        this.borrowReason = borrowReason;
    }

    public String getBorrowReason() {
        return borrowReason;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getCreator() {
        return creator;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    public String getModifier() {
        return modifier;
    }

    public List<ArchiveBorrow> getBorrowInfo() {
        return borrowInfo;
    }

    public void setBorrowInfo(List<ArchiveBorrow> borrowInfo) {
        this.borrowInfo = borrowInfo;
    }

    public String getOperType() {
        return operType;
    }

    public void setOperType(String operType) {
        this.operType = operType;
    }

    public Date getBorrowOperTime() {
        return borrowOperTime;
    }

    public void setBorrowOperTime(Date borrowOperTime) {
        this.borrowOperTime = borrowOperTime;
    }

    public Date getReturnOperTime() {
        return returnOperTime;
    }

    public void setReturnOperTime(Date returnOperTime) {
        this.returnOperTime = returnOperTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("taskId", getTaskId())
                .append("roomNo", getRoomNo())
                .append("borrowOrgNo", getBorrowOrgNo())
                .append("borrowNo", getBorrowNo())
                .append("borrowUserType", getBorrowUserType())
                .append("borrowUserName", getBorrowUserName())
                .append("borrowPhone", getBorrowPhone())
                .append("utilizationMethod", getUtilizationMethod())
                .append("borrowType", getBorrowType())
                .append("borrowDay", getBorrowDay())
                .append("borrowTime", getBorrowTime())
                .append("giveBackTime", getGiveBackTime())
                .append("giveBackStatus", getGiveBackStatus())
                .append("giveBackBy", getGiveBackBy())
                .append("borrowReason", getBorrowReason())
                .append("createTime", getCreateTime())
                .append("creator", getCreator())
                .append("modifyTime", getModifyTime())
                .append("modifier", getModifier())
                .append("archiveBorrowList", getBorrowInfo())
                .toString();
    }
}
